#include <gflags/gflags.h>
#include <glog/logging.h>
#include <string>

#include "sample.pb.h"

DEFINE_string(output_file,
              "output.txt",
              "Output file name.");

DECLARE_bool(alsologtostderr);
DECLARE_bool(log_prefix);

void TestFunction(const Sample& sample) {
  LOG(INFO) << sample.ShortDebugString();
}

int main(int argc, char **argv) {
  google::ParseCommandLineFlags(&argc, &argv, true);
  google::InitGoogleLogging(argv[0]);

  FLAGS_alsologtostderr = true;
  FLAGS_log_prefix = false;

  Sample sample;
  sample.set_key("key");
  sample.set_value(1.0);
  TestFunction(sample);
}
